Component({
    properties: {},
    data: {
        isRefresh: false,
        scrollTopVal: 0,
    },
    methods: {
        scrollToTop() {
            this.setData({
                scrollTopVal: 0
            })
        },
        setRefreshStatus() {
            this.setData({
                isRefresh: !this.data.isRefresh
            })
        },
        toLower() {
            this.triggerEvent('toLower');
        },
        refresh() {
            this.setRefreshStatus();
            this.triggerEvent('refresh');
        },

        finishRefresh() {},

        cancelRefresh() {},

        bindscroll(ev) {
            this.triggerEvent('refreshBoxScroll', ev);
        }
    }
});